{extend name="Public/base"/}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>应用管理</h2>
		</div>
		<div class="pull-right">
			<a href="/admin.php?s=/Module/lists/refresh/1.html" class="btn btn-primary pull-right">
				刷新
			</a>
		</div>
	</header>
	<div class="tabs-wrapper profile-tabs">
		<div class="tab-content">
			<div class="tab-pane fade in active">
				<div class="table-responsive clearfix">
					<table class="table table-striped table-hover">
						<thead>
							<tr>
								<th width="60">ID</th>
								<th>模块名</th>
								<th>模块英文名</th>
								<th>模块介绍</th>
								<th>版本</th>
								<th>商业模板</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							{volist name="modules" id="item"}
							<tr>
								<td>{$item['id']}</td>
								<td>{$item['alias']}</td>
								<td>{$item['name']}</td>
								<td>{$item['summary']}</td>
								<td>{$item['version']}</td>
								<td>{$item['is_com']}</td>
								<td>
								{if condition="$item['is_setup'] eq '0'"}
									<a href="{:U('Module/install',array('id'=>$item['id']))}" class="ajax-get">安装</a>
								{else/}
									{if condition="$item['can_uninstall'] eq 1"}
										<a href="{:U('Module/uninstall',array('id'=>$item['id']))}" class="ajax-get">卸载</a>
									{/if}
								{/if}
								</td>
							</tr>
							{/volist}
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
{/block}